/*
+--------------------------------------------------------------------------
|   Mblog [#RELEASE_VERSION#]
|   ========================================
|   Copyright (c) 2014, 2015 mtons. All Rights Reserved
|   http://www.mtons.com
|
+---------------------------------------------------------------------------
*/
package com.mtons.mblog.modules.entity;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 链接
 */
@Entity
@Table(name = "mto_nav")
public class Nav implements Serializable {

	private static final long serialVersionUID = -2086126969953262431L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private int id;

	/**
	 * 名称
	 */
	@Column(length = 32)
	private String name;

	/**
	 * 图标
	 */
	@Column(length = 128)
	private String logo;

	/**
	 * 描述
	 */
	@Column(name = "desc_", length = 128)
	private String desc;
	
	/**
	 * 描述
	 */
	@Column(name = "url_", length = 128)
	private String url;

	/**
	 * 类型id
	 */
	@Column(nullable = true)
	private int navTypeId;

	/**
	 * 排序值
	 */
	@Column(nullable = true)
	private int weight;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getLogo() {
		return logo;
	}

	public void setLogo(String logo) {
		this.logo = logo;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public int getNavTypeId() {
		return navTypeId;
	}

	public void setNavTypeId(int navTypeId) {
		this.navTypeId = navTypeId;
	}

	public int getWeight() {
		return weight;
	}

	public void setWeight(int weight) {
		this.weight = weight;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}
}
